#ifndef SSY_LINUX_SOCKET_H
#define SSY_LINUX_SOCKET_H


#ifdef __cplusplus
extern "C" {
#endif

	int InitSocketServer(unsigned short port);
	int AcceptSocket(int listenfd);
	int InitSocketClient(void);
	int ConnectSocket(int sockfd, const char *ip, unsigned short port);
	int SendSocket(int fd, void *p_data, int size);
	int RecvSocket(int fd, void *p_data, int size);
	int CloseSocket(int fd);

#ifdef __cplusplus
};
#endif


#endif // SSY_LINUX_SOCKET_H

